From bf14a334f4bf15474a533440f75d3a3655793fcd Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Fri, 10 Jan 2014 16:16:56 -0500 Subject: [PATCH] file chooser dialog: Use headerbar Make the file chooser dialog use a headerbar when desired. https://bugzilla.gnome.org/show_bug.cgi?id=720059 --- gtk/gtkfilechooserdialog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index b71c66fd24..533c7b9230 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -29,6 +29,8 @@ #include "gtksizerequest.h" #include "gtktypebuiltins.h" #include "gtkintl.h" +#include "gtksettings.h" +#include "gtkdialogprivate.h" #include @@ -262,6 +264,7 @@ gtk_file_chooser_dialog_init (GtkFileChooserDialog *dialog) dialog->priv->response_requested = FALSE; gtk_widget_init_template (GTK_WIDGET (dialog)); + gtk_dialog_set_use_header_bar_from_setting (GTK_DIALOG (dialog)); _gtk_file_chooser_set_delegate (GTK_FILE_CHOOSER (dialog), GTK_FILE_CHOOSER (dialog->priv->widget)); -- 2.30.2